package pl.myapp.webtest.viewscopetest;


import javax.faces.bean.ViewScoped;
import javax.inject.Named;
import java.io.Serializable;

/**
 * Created by IntelliJ IDEA.
 * User: kaafaar
 * Date: 18.06.11
 * Time: 23:51
 * To change this template use File | Settings | File Templates.
 */
@Named
@ViewScoped
public class CounterBean implements Serializable {
    private int counter = 0;

    public int getCounter() {
        return counter;
    }
    public void setCounter(int counter) {
        this.counter = counter;
    }

    public void increment() {
        counter++;
    }
}
